/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.account;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.account.SysRole;

/**
 * @author CSJ (email:raulcsj@163.com)
 * @since 2012-12-06
 */
public interface SysRoleService {
    /****************************************
     * Insert a instace of SysRole
     ****************************************/
    public void insert(SysRole sysrole) throws Exception;

    /****************************************
     * Insert instaces of SysRole
     ****************************************/
    public void batchInsert(SysRole sysrole) throws Exception;

    /****************************************
     * Delete a instace of SysRole
     ****************************************/
    public void delete(SysRole sysrole) throws Exception;

    /****************************************
     * Delete instaces of SysRole
     ****************************************/
    public void batchDelete(SysRole sysrole) throws Exception;

    /****************************************
     * Update a instace of SysRole
     ****************************************/
    public void update(SysRole sysrole) throws Exception;

    /****************************************
     * Query instaces of SysRole
     ****************************************/
    public List<BaseModel> queryAsList(SysRole sysrole) throws Exception;

    /****************************************
     * Query a instaces of SysRole
     ****************************************/
    public BaseModel queryAsObject(SysRole sysrole) throws Exception;
}
